import { defineConfig } from 'vite'
import { viteMockServe } from 'vite-plugin-mock'

export default defineConfig({
    define: {
        'MockRequest': true,
    },
    plugins: [
        viteMockServe({
            mockPath: 'mock',
            localEnabled: true, // 开发环境,
        }),
    ],
})